( Uncaught TypeError: Cannot set property 'display' of undefined